﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Mao.Forms
{
	public partial class frmPrompt : Form
	{
		private String instruction, caption;
		public string Value;

		public frmPrompt(string Instruction, string Caption)
		{
			InitializeComponent();

			this.instruction = Instruction;
			this.caption = Caption;
		}

		private void frmPrompt_Load(object sender, EventArgs e)
		{
			this.inAnswer.Focus();
			this.Text = this.instruction;
			this.lblQuestion.Text = this.caption;
		}

		private void btnOk_Click(object sender, EventArgs e)
		{
			this.Value = this.inAnswer.Text;
			this.Close();
		}

	}
}
